home *** CD-ROM | disk | FTP | other *** search
/ Micromanía: 150 Juegos 2010 / 150Juegos_16.iso / Shareware / Shape Smash / shape-smash.swf / scripts / Code / LIB / _gt710.as < prev    next >
Encoding:
Text File  |  2010-05-14  |  3.6 KB  |  144 lines

  1. package Code.LIB
  2. {
  3.    import Code.LIB.animators._do643;
  4.    import flash.events.Event;
  5.    
  6.    public class _gt710 extends _dk430
  7.    {
  8.       private var iAnimators:Array;
  9.       
  10.       protected var iITimer:int = 0;
  11.       
  12.       private var prvisible:Boolean;
  13.       
  14.       public var isShowing:Boolean = false;
  15.       
  16.       private var isHiding:Boolean = false;
  17.       
  18.       protected var state:int;
  19.       
  20.       private const alfaFade:Number = 0.2;
  21.       
  22.       public function _gt710(param1:Array = null)
  23.       {
  24.          isHiding = false;
  25.          isShowing = false;
  26.          iITimer = 0;
  27.          super();
  28.          this.alpha = 0;
  29.          iAnimators = new Array();
  30.          prvisible = true;
  31.          if(param1 != null)
  32.          {
  33.             _ir266(param1);
  34.          }
  35.          this.show();
  36.       }
  37.       
  38.       public function _up561(param1:Array) : void
  39.       {
  40.          while(this.numChildren != 0)
  41.          {
  42.             this.removeChildAt(0);
  43.          }
  44.          _ir266(param1);
  45.       }
  46.       
  47.       public function get _hy116() : Boolean
  48.       {
  49.          return prvisible;
  50.       }
  51.       
  52.       public function get _fl746() : Boolean
  53.       {
  54.          return this.isHiding || this.isShowing;
  55.       }
  56.       
  57.       override public function _dx150() : void
  58.       {
  59.          super._dx150();
  60.       }
  61.       
  62.       public function hide() : void
  63.       {
  64.          this.isShowing = false;
  65.          this.isHiding = true;
  66.       }
  67.       
  68.       private function _ir266(param1:Array) : void
  69.       {
  70.          var _loc2_:uint = 0;
  71.          var _loc3_:* = undefined;
  72.          var _loc4_:int = 0;
  73.          _loc2_ = 0;
  74.          while(_loc2_ < param1.length)
  75.          {
  76.             _loc3_ = param1[_loc2_][0](param1[_loc2_]);
  77.             _loc4_ = param1[_loc2_][(param1[_loc2_] as Array).length - 4] as int;
  78.             if(param1[_loc2_][(param1[_loc2_] as Array).length - 2] != null)
  79.             {
  80.                this[param1[_loc2_][(param1[_loc2_] as Array).length - 2]] = _loc3_;
  81.             }
  82.             _loc3_["_vq458"] += _loc4_;
  83.             _loc3_["_vg471"] += int(param1[_loc2_][param1[_loc2_].length - 3]);
  84.             if(!param1[_loc2_][(param1[_loc2_] as Array).length - 1])
  85.             {
  86.                _loc3_["visible"] = false;
  87.             }
  88.             this.addChild(_loc3_);
  89.             _loc2_++;
  90.          }
  91.       }
  92.       
  93.       override public function onEnterFrame(param1:Event) : void
  94.       {
  95.          var _loc2_:int = 0;
  96.          var _loc3_:_do643 = null;
  97.          if(isShowing)
  98.          {
  99.             this.alpha += alfaFade;
  100.             if(this.alpha >= 1)
  101.             {
  102.                this.isShowing = false;
  103.                this.alpha = 1;
  104.             }
  105.          }
  106.          if(isHiding)
  107.          {
  108.             this.alpha -= alfaFade;
  109.             if(this.alpha <= 0)
  110.             {
  111.                this.isHiding = false;
  112.                this.alpha = 0;
  113.                this.prvisible = false;
  114.             }
  115.          }
  116.          _loc2_ = 0;
  117.          while(_loc2_ < iAnimators.length)
  118.          {
  119.             _loc3_ = iAnimators[_loc2_];
  120.             _loc3_.onEnterFrame();
  121.             if(_loc3_._kx70())
  122.             {
  123.                iAnimators.splice(_loc2_,1);
  124.                _loc2_--;
  125.             }
  126.             _loc2_++;
  127.          }
  128.       }
  129.       
  130.       public function _wk598(param1:_do643) : void
  131.       {
  132.          iAnimators.push(param1);
  133.       }
  134.       
  135.       public function show() : void
  136.       {
  137.          this.isShowing = true;
  138.          this.isHiding = false;
  139.          this.prvisible = true;
  140.       }
  141.    }
  142. }
  143.  
  144.